import request from '@/utils/request'
const api_comment_name = '/edu/service/comment'
export default {
  // 分页查询课程评论
  getCommentList(page, limit, courseId) {
    return request({
      url: `${api_comment_name}/pageComment/${page}/${limit}`,
      method: 'get',
      params: { courseId }
    })
  },
  // 添加评论
  addCommentInfo(comment) {
    return request({
      url: `${api_comment_name}/addComment`,
      method: 'post',
      data: comment
    })
  }
}